<!doctype html>
<html  class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>酒店管理后台系统</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="./css/font.css" th:href="@{/css/font.css}">
    <link rel="stylesheet" href="./css/login.css" th:href="@{/css/login.css}">
	  <link rel="stylesheet" href="./css/xadmin.css" th:href="@{/css/xadmin.css}">
    <script type="text/javascript" src="" th:src="@{/webjars/jquery/3.4.1/jquery.js}"></script>
    <script src="./lib/layui/layui.js" charset="utf-8" th:src="@{/webjars/layui/2.5.5/js/layui.js}"></script>
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="login-bg">

    <div class="login layui-anim layui-anim-up">
        <div class="message">酒店管理后台系统</div>
        <div id="darkbannerwrap"></div>
        <form method="post" class="layui-form" th:action="@{skipPage}">
            <input name="loginName" placeholder="用户名" type="text" lay-verify="required" class="layui-input" >
            <hr class="hr15">
            <input name="password" lay-verify="required" placeholder="密码"  type="password" class="layui-input">
            <hr class="hr15">
            <p style="color: red;text-align: center;font-size: 14px" th:if="${msg != null}" th:text="${msg}">用户名或密码有误！</p>
            <hr class="hr15">
            <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
            <hr class="hr20" >
        </form>
    </div>

    <script>
        $(function  () {
            layui.use('form', function(){
              var form = layui.form, $ = layui.jquery, layer = layui.layer;
              // //监听提交
              // $("#submit").click(function () {
              //    //获取输入的登录密码和密码
              //    var loginName = $("input[name='loginName']").val();
              //    var password = $("input[name='password']").val();
              //    if(loginName.trim().length == 0){
              //        layer.open({
              //            title: '错误消息'
              //            , content: '输入用户名！'
              //            , skin: 'layui-layer-lan'
              //            , shade: 0
              //            , icon: 5
              //            , anim: 6
              //            , closeBtn: 0
              //        });
              //        return;
              //    }
              //    if(password.trim().length == 0){
              //        layer.open({
              //            title: '错误消息'
              //            , content: '请输入密码！'
              //            , skin: 'layui-layer-lan'
              //            , shade: 0
              //            , icon: 5
              //            , anim: 6
              //            , closeBtn: 0
              //        });
              //        return;
              //    }
              // });
            });
        })
    </script>
    <!-- 底部结束 -->
    <script>
    //百度统计可去掉
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</body>
</html>